/**
 * Copyright (c) 2017 rxi
 * Copyright (C) 2018 Michael L. Gran
 *
 * This library is free software; you can redistribute it and/or modify it
 * under the terms of the MIT license. See `log.c` for details.
 */

#ifndef LOG_H
#define LOG_H

#include <stdio.h>
#include <stdarg.h>

#define LOG_VERSION "0.1.1"

enum { LOG_TRACE, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL };

#if 1
    #define log_trace(...) 
    #define log_debug(...) 
    #define log_error(...) 
#else
    #define log_trace(...) 
    #define log_debug(...) printf(##__VA_ARGS__)
    #define log_error(...) printf(##__VA_ARGS__)
#endif

#define log_info(...)  printf(##__VA_ARGS__)

#endif // LOG_H
